package com.mall.service;

import com.mall.entity.Favorite;

/**
 * @author xyl
 * @date 2021-03-02 14:51
 */
public interface FavoriteService {
    /**
     * 添加收藏
     * @param goodsId
     * @return
     */
    int add(Integer goodsId);

    /**
     * 移除收藏
     * @param goodsId
     * @return
     */
    int remove(Integer goodsId);


    Favorite getFavoriteByGoodsId(Integer goodsId);
}
